# -*- encoding: utf-8 -*-
"""
@File    : MAC.py
@Time    : 2020/10/27 21:09
@Author  : lluyao
@Email   : lluyao61@163.com
@Software: PyCharm
"""
import random
def add_mac(filename):

    with open(filename,"w",encoding="utf-8") as f:
        for i in range(100):
            str2 = '01-AF-3B'
            for j in range(6):
                if j%2==0:
                    str2 += '-'
                str1 =hex(random.randint(1,16))[2].upper()
                str2+=str1

            f.write(str2)
            f.write('\n')

filename = 'macs.txt'
add_mac(filename)



